home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Char Set & String Stuff / CharSet source code / Glue Code / winheader.cpp < prev   
Encoding:
Text File  |  2000-06-12  |  753 b   |  39 lines

  1. //    winheader.cpp
  2. //
  3. //    Copyright (©) 2000 REAL Software, Inc.
  4. //
  5. //    This file defines functions needed for Win32 REALbasic plugins.
  6. //    This file should be included in your Windows (x86) target.
  7. //    Remember to set your prefix file to winheader.h.
  8.  
  9. #ifndef WINHEADER_H
  10. #warning Set your prefix file to "winheader.h"
  11. #endif
  12.  
  13. /* ...maybe the following stuff is no longer needed;
  14.     seems to be defined in QTML.
  15.     
  16. Boolean PtInRect(const Point &pt, Rect *rBounds)
  17. {
  18.     if (pt.h >= rBounds->left && pt.h < rBounds->right && pt.v >= rBounds->top
  19.             && pt.v < rBounds->bottom)
  20.         return true;
  21.     return false;
  22. }
  23.  
  24. void Debugger(void)
  25. {
  26.     _asm int 3
  27. }
  28.  
  29. Ptr NewPtrClear(long size)
  30. {
  31.     Ptr p = (Ptr) malloc(size);
  32.     if (!p)
  33.         return nil;
  34.     memset(p, 0, size);
  35.     return p;
  36. }
  37.  
  38. */
  39.